multilevel inheritance in python example